package com.ruoyi.app.controller.common.service.impl;

import com.ruoyi.app.controller.common.mapper.ICommonImageMapper;
import com.ruoyi.app.controller.common.service.ICommonImageService;
import com.ruoyi.common.entity.DO.CommonImageDO;
import com.ruoyi.common.entity.VO.CommonImageSearchVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommonImageServiceImpl implements ICommonImageService {

    @Resource
    private ICommonImageMapper commonImageMapper;

    @Override
    public List<CommonImageDO> searchList(CommonImageSearchVO commonImageSearchVO){
        commonImageSearchVO.setIsDelete(0);
        commonImageSearchVO.setIsEnable(1);
        return commonImageMapper.searchList(commonImageSearchVO);
    }
}
